<?php

namespace application\admin\controller;

use ticky\request;
use ticky\response;
use ticky\session;

class logout extends base {

    public function index() {
        session('roleid', null);
        session('uid', null);
        session('username', null);
        session('groupid', null);
        return response::ajax(['code' => 401, 'msg' => '退出成功']);
    }

}
